﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.ModelForJD
{
    /// <summary>
    /// 信息推送
    /// </summary>
    public class InformationPushJD
    {
        /// <summary>
        /// 返回标识
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 返回描述
        /// </summary>
        public string resultMessage { get; set; }
        /// <summary>
        /// 返回编码
        /// </summary>
        public string resultCode { get; set; }
        
        /// <summary>
        /// 返回推送信息息
        /// </summary>
        public GetInformationPushJD results { get; set; }
    }
    public class GetInformationPushJD
    {
        /// <summary>
        /// 推送id
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 推送类型
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 推送时间
        /// </summary>
        public DateTime time { get; set; }
        /// <summary>
        /// 返回推送信息息
        /// </summary>
        public List<GetInformationPush> result { get; set; }
    }
    public class GetInformationPush
    {
        /// <summary>
        /// 价格
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public string skuId { get; set; }
        /// <summary>
        /// 京东价格
        /// </summary>
        public string jdPrice { get; set; }
        /// <summary>
        /// 商品池编号
        /// </summary>
        public string page_num { get; set; }
        /// <summary>
        /// 1添加，2删除
        /// </summary>
        public int state { get; set; }
        /// <summary>
        /// 父订单id
        /// </summary>
        public int pOrder { get; set; }
        /// <summary>
        /// 京东订单编号
        /// </summary>
        public int orderId { get; set; }
        /// <summary>
        /// 服务单号
        /// </summary>
        public int afsServiceId { get; set; }
        /// <summary>
        /// 取消类型（1: 7天未支付取消消息; 2: 未确认取消）
        /// </summary>
        public int cancelType { get; set; }
        /// <summary>
        /// 京东账号
        /// </summary>
        public string pin { get; set; }
        /// <summary>
        /// 京东地址编码
        /// </summary>
        public string areaId { get; set; }
        /// <summary>
        /// 京东地址名称
        /// </summary>
        public string areaName { get; set; }
        /// <summary>
        /// 父京东ID编码
        /// </summary>
        public string parentId { get; set; }
        /// <summary>
        /// 地址等级(行政级别：国家(1)、省(2)、市(3)、县(4)、镇(5))
        /// </summary>
        public string areaLevel { get; set; }
        /// <summary>
        /// 操作类型(插入数据为1，更新时为2，删除时为3)
        /// </summary>
        public string operateType { get; set; }
    }

}
